<?php

class TokensController extends Base {
  use CURD;

  public $tableName = 'tokens';
  protected $deleted_at = false;
  protected $isTree = false;
  protected $likeField = ['ip','info']; 
  protected $parentKey = 'pid';
  protected $relations = [
    'user_id' => ['table'=>'admin_users','as'=>'user','pri'=>'id','cols'=>['id','name','avatar'],'where'=>[],'type'=>'one'],
  ];
}
